import Taro from '@tarojs/taro';

function navigateTo(url) {
  if (!url) {
    return;
  }
  if(url.includes('http')){
    let src = encodeURIComponent(url)
    Taro.navigateTo({
      url:`/pages/fineEngine/webView?url=${src}`
    })
    return;
  }
  Taro.navigateTo({
    url
  })
}

export { navigateTo };
